/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
using System;

using UnitedBinary.UnitTests.Framework;

namespace TestingTestClasses
{
	/// <summary>
	/// Summary description for NullExceptionSourceTests.
	/// </summary>
	public class NullExceptionSourceTests
	{
		public NullExceptionSourceTests()
		{
		}

		[TestMethod]
		public void GiveMeANull(TestMethodRecord tmr)
		{
			tmr.RegisterException("This exception is used to test bug 273: Null exception fails exception explorer.");

			Exception e = new Exception("This exception should have a null source.");
			e.Source = null;

			throw new Exception("Outer exception to keep the source null.", e);
		}
	}
}
